import { createBrowserRouter } from "react-router-dom";
import Layout from "@/pages/Layout";
import Month from "@/pages/Month";
import New from "@/pages/New";
import Year from "@/pages/Year";
import Bill from "@/pages/Bill";
const router = createBrowserRouter([
  {
    path: '/',
    element: <Layout></Layout>,
    children: [{
      index: true,
      element: <Month></Month>,
    }, {
      path: "year",
      element: <Year></Year>,
    }, , {
      path: "bill",
      element: <Bill></Bill>,
    },]
  },

  {
    path: "/new",
    element: <New></New>,
  },

]);
export default router;
